package com.atguigu.behavior.responsibilitychain;

public abstract class Approver {
    protected Approver nextApprover;

    protected String name;

    public Approver(String name) {
        this.name = name;
    }

    public void setNextApprover(Approver nextApprover) {
        this.nextApprover = nextApprover;
    }

    protected  abstract void processRequest(PurchaseRequest purchaseRequest);
}
